import { lazy } from "react";

const lazyLoad = (moduleName: string) => {
  const Module = lazy(() => import(`../${moduleName}`));
  return <Module />;
};

export default lazyLoad;
